package com.sc.test;

import android.os.Bundle;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Shen Chao on 2017-12-27-027.
 */

public class ResultActivity extends AppCompatActivity {

    @BindView(R.id.tv_result)
    TextView tvResult;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_result);
        ButterKnife.bind(this);
        String result = this.getIntent().getStringExtra("result");
        tvResult.setText(result);
    }

    @OnClick(R.id.bt_result_close)
    public void onViewClicked() {
        this.finish();
    }
}
